﻿@model CultuRAM.Models.UserProfile  

@{
    ViewBag.Title = "Eliminar Utilizador";
}

<h4>@ViewBag.Title</h4>
<br/>

@using (Ajax.BeginForm("Delete", new AjaxOptions
    {
        UpdateTargetId = "userManager",
        InsertionMode = InsertionMode.Replace,
        HttpMethod = "POST",
        OnSuccess = "UpdateListUsers()"
    })) 
{     
    @Html.AntiForgeryToken()
    @*@Html.ValidationSummary(false)*@

    <p>
        <span class="display-field">
            <b>Nome: </b>
        </span>
        <span class="display-field">
            @Html.DisplayFor(model => model.UserName)
        </span>
    </p>
    <p>
        <span class="display-field">
            <b>@Html.DisplayNameFor(model => model.Email): </b>
        </span>
        <span class="display-field">
            @Html.DisplayFor(model => model.Email)
        </span>
    </p>
    
    <br/>
    <br/>

    <b>ATENÇÃO!</b><br />
    <span>O registo será eliminado definitivamente. Pretende Continuar?</span>
    <br/><br /><br />
    
    <button class="btn btn-danger" value="Guardar" type="submit"><i class="icon-ok icon-white"></i> Sim</button>
    @Html.Raw(@Ajax.ActionLink("replacetxt", "_Default", "Account",
        new AjaxOptions
            {
                UpdateTargetId="userManager", 
                InsertionMode = InsertionMode.Replace, 
                HttpMethod = "GET",
                OnComplete = "UserBgColorClear()" 
            }, new { @class = "btn btn-default btn-xs"}) 
		.ToHtmlString().Replace("replacetxt", "<i class=\"icon-ban-circle\"></i> Não"))  

}


@Scripts.Render("~/bundles/culturam")



